import { UPDATEPAGECHOOSEJOBTYPES } from '../types/pagechoosejobtypes'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  jobtypes: {
    title: '岗位分类',
    subtitle: '(可选3个)',
    supportnum: '3',
    type: 'gwfl',
    value: [],
    datalist: []
  },
  chooselist: [], // 选择了哪几个
  chooseData: {
    name: ''
  }
}

export default handleActions(
  {
    [UPDATEPAGECHOOSEJOBTYPES] (state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
